﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SeDuce.IDAL;
using System.Data;

namespace SeDuce.BLL
{
    public class OrderBLL
    {
        private static readonly IOrderDAL dal = SeDuce.DALFactory.DataAccess.CreateOrderDAL();

        public DataTable GetOrders()
        {
            return dal.GetOrders();
        }

        public DataTable GetOrderByOrderID(string orderID)
        {
            return dal.GetOrderByOrderID(orderID);
        }

        public bool InsertOrder(SeDuce.Model.Order order)
        {
            return dal.InsertOrder(order);
        }

        public bool DeleteOrder(string orderID)
        {
            return dal.DeleteOrder(orderID);
        }
    }
}
